﻿using UnityEngine;
using System.Collections;

public class Forcer : MonoBehaviour {

    public float Frequency = 1;
    float time = 0;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
        time += Time.deltaTime;
        if (time > Frequency)
        {
            // Add force
            rigidbody.AddForce(Vector3.right * 100, ForceMode.Acceleration);
           // print("POW!");
            time = 0;
        }
	}
}
